package com.guan.ordering_sys.generator.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.guan.ordering_sys.generator.entity.Post;
import com.guan.ordering_sys.vo.PostVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * <p>
 *  PostMapper 接口
 * </p>
 *
 * @author 关远键
 * @version v1.0.3
 * @since 2021-06-18
 */
@Repository
public interface PostMapper extends BaseMapper<Post> {

    IPage<PostVo> getList(Page<PostVo> page);

    PostVo getById(@Param("id") Integer id);

}
